package com.szgr.baoyin.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;

import com.android.volley.Request;
import com.android.volley.toolbox.StringRequest;
import com.szgr.baoyin.R;

public class ApplyCardAddActivity extends BaseActivity {

    private EditText et_name;
    private EditText et_idCard;
    private EditText et_phone;
    private EditText et_company;
    private EditText et_companyAddress;
    private EditText et_emailAddress;
    private EditText et_email;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_apply_card_add);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initActionBar() {
        actionBarTitle.setText("添加办卡信息");
        actionBarConfirm.setVisibility(View.VISIBLE);
        actionBarConfirm.setText("确定");
    }

    @Override
    public void initView() {
        et_name = (EditText) findViewById(R.id.company_name);
        et_idCard = (EditText) findViewById(R.id.faren_username);
        et_phone = (EditText) findViewById(R.id.faren_phone);
        et_company = (EditText) findViewById(R.id.jishu_username);
        et_companyAddress = (EditText) findViewById(R.id.jishu_phone);
        et_emailAddress = (EditText) findViewById(R.id.add_address_choose);
        et_email = (EditText) findViewById(R.id.add_address_address);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.action_bar_left:
                finish();
                break;
            case R.id.action_bar_confirm:
                addCardMsg();
                break;
        }
    }

    private void addCardMsg() {
//        StringRequest sr = new StringRequest(Request.Method.POST,);
    }
}
